package collention;
import java.util.Arrays;
import java.util.List;
public class ArrayToCollection {
    public static void main(String[] args) {
            String [] array={"one","two","there","four","five","six"};
            System.out.println("array"+Arrays.toString(array));
            List<String> list=Arrays.asList(array);
            System.out.println("list"+list);
            list.set(2,"six");
            System.out.println("array"+Arrays.toString(array));
            System.out.println("list"+list);








    }
}
